package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.BaseMemberProcessDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 会员流程Jpa仓库类
 * @author 万宁
 * @version 2.0.0
 * @date 2021-05-14
 */
@Repository
public interface BaseMemberProcessRepository extends JpaRepository<BaseMemberProcessDO, Long>, JpaSpecificationExecutor<BaseMemberProcessDO> {

    BaseMemberProcessDO findFirstByProcessTypeAndIsDefault(Integer processType, Integer isDefault);
}
